package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-02-24
 */
@TableName("user_access_log")
public class UserAccessLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 被访问者的id
     */
    @TableField("to_access_user_id")
    private Integer toAccessUserId;

    @TableField("create_time")
    private LocalDateTime createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getToAccessUserId() {
        return toAccessUserId;
    }

    public void setToAccessUserId(Integer toAccessUserId) {
        this.toAccessUserId = toAccessUserId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "UserAccessLog{" +
        "id=" + id +
        ", userId=" + userId +
        ", toAccessUserId=" + toAccessUserId +
        ", createTime=" + createTime +
        "}";
    }
}
